package com.niiwoo.civet.trade.dao.mapper;

import com.niiwoo.civet.trade.dao.entity.ProjectInvestPrize;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProjectInvestPrizeMapperExt extends ProjectInvestPrizeMapper {

	List<ProjectInvestPrize> selectList();

	ProjectInvestPrize selectByPrizeIdAndType(@Param("prizeId") Long prizeId, @Param("type") Byte type);

	ProjectInvestPrize selectByUserIdProjectIdInvestOrderId(@Param("userId") String userId, @Param("projectId") Long projectId, @Param("investOrderId") Long investOrderId);

	ProjectInvestPrize selectByPrizeIdAndTypeAndInvestId(@Param("prizeId") Long prizeId, @Param("type") Byte type,@Param("investOrderId") Long investOrderId);
}